package my_class.classLoader;

import java.io.IOException;
import java.io.InputStream;
import java.util.Objects;
import java.util.Properties;

public class Test1 {
    public static void main(String[] args) throws IOException {
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        InputStream is = systemClassLoader.getResourceAsStream("stu_info.properties");
        Properties prop = new Properties();
        prop.load(is);
        Objects.requireNonNull(is).close();
        System.out.println(prop.getProperty("className"));
    }
}
